package com.hyt.it.ogt.ks.feign.model;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.hyt.core.base.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 考生信息
 * </p>
 *
 * @author 刘恒活
 * @since 2020-05-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="ExamCandidateInfo对象", description="考生信息")
public class ExamCandidateInfo extends BaseEntity {

    private static final long serialVersionUID = -5422789866702142519L;
    @ApiModelProperty(value = "考试考生ID")
    private String examCandidateId;

    @ApiModelProperty(value = "配置代码，保存考生配置信息ID", required = true)
    @Length(min=1, max = 32, message = "配置代码不能为空且长度在[1,16]之间")
    @NotNull(message = "配置代码不能为空")
    private String configCode;

    @ApiModelProperty(value = "配置值")
    private String configValue;

}
